#  封装weibo各个字段

class Weibo:
    def __init__(self):
        self.user_id = ''
        self.followers_count = ''
        self.friends_count = ''
        self.verified = ''
        self.verified_type = ''
        # self.user_id = ''
        #
        # self.content = ''
        # self.article_url = ''
        #
        # self.original_pictures = []
        # self.retweet_pictures = None
        # self.original = None
        # self.video_url = ''
        #
        # self.publish_place = ''
        # self.publish_time = ''
        # self.publish_tool = ''
        #
        # self.up_num = 0
        # self.retweet_num = 0
        # self.comment_num = 0

    def __str__(self):
        """打印一条微博"""
        # result = self.id + '\n'
        result = u'粉丝数：%s\n' % self.followers_count
        result += u'关注数：%s\n' % self.friends_count
        result += u'是否认证：%s\n' % self.verified
        result += u'认证类型：%s\n' % self.verified_type
        # result = self.content + '\n'
        # result += u'微博发布位置：%s\n' % self.publish_place
        # result += u'发布时间：%s\n' % self.publish_time
        # result += u'发布工具：%s\n' % self.publish_tool
        # result += u'点赞数：%d\n' % self.up_num
        # result += u'转发数：%d\n' % self.retweet_num
        # result += u'评论数：%d\n' % self.comment_num
        # result += u'url：https://weibo.cn/comment/%s\n' % self.id
        return result
